if not exist %PGE_PATH%\SDK md %PGE_PATH%\SDK %PGE_PATH%\SDK\include %PGE_PATH%\SDK\LIB %PGE_PATH%\SDK\DLL %PGE_PATH%\SDK\LIB\Debug %PGE_PATH%\SDK\LIB\Release %PGE_PATH%\SDK\DLL\Debug %PGE_PATH%\SDK\DLL\Release %PGE_PATH%\SDK\PSPLIB\Debug %PGE_PATH%\SDK\PSPLIB\Release

if exist SystemExportSymbol.h xcopy /a /d /y SystemExportSymbol.h %PGE_PATH%\SDK\include\
if exist SystemDefines.h xcopy /a /d /y  SystemDefines.h %PGE_PATH%\SDK\include\
if exist TSingleton.h xcopy /a /d /y  TSingleton.h %PGE_PATH%\SDK\include\
if exist PGESystem.h xcopy /a /d /y PGESystem.h %PGE_PATH%\SDK\include\
if exist FileLib.h xcopy /a /d /y FileLib.h %PGE_PATH%\SDK\include\
if exist CMemObject.h xcopy /a /d /y CMemObject.h %PGE_PATH%\SDK\include\
if exist CBinaryStream.h xcopy /a /d /y CBinaryStream.h %PGE_PATH%\SDK\include\
if exist CFileStream.h xcopy /a /d /y CFileStream.h %PGE_PATH%\SDK\include\
if exist CMemStream.h xcopy /a /d /y CMemStream.h %PGE_PATH%\SDK\include\
if exist ITimer.h xcopy /a /d /y ITimer.h %PGE_PATH%\SDK\include\
if exist CTime.h xcopy /a /d /y CTime.h %PGE_PATH%\SDK\include\
if exist TimeLib.h xcopy /a /d /y TimeLib.h %PGE_PATH%\SDK\include\
if exist CFPSTimer.h xcopy /a /d /y CFPSTimer.h %PGE_PATH%\SDK\include\
if exist ThreadLib.h xcopy /a /d /y ThreadLib.h %PGE_PATH%\SDK\include\
if exist IThread.h xcopy /a /d /y IThread.h %PGE_PATH%\SDK\include\
if exist CDirectCtrl.h xcopy /a /d /y CDirectCtrl.h %PGE_PATH%\SDK\include\
if exist CDirectCtrl.inl xcopy /a /d /y CDirectCtrl.inl %PGE_PATH%\SDK\include\

if exist CBinaryStream.inl xcopy /a /d /y CBinaryStream.inl %PGE_PATH%\SDK\include\
if exist CFileStream.inl xcopy /a /d /y CFileStream.inl %PGE_PATH%\SDK\include\
if exist CTime.inl xcopy /a /d /y CTime.inl %PGE_PATH%\SDK\include\

if exist %PGE_PATH%\debug\PGESystem.lib xcopy /a /d /y %PGE_PATH%\debug\PGESystem.lib %PGE_PATH%\SDK\LIB\Debug\

if exist %PGE_PATH%\release\PGESystem.lib xcopy /a /d /y %PGE_PATH%\release\PGESystem.lib %PGE_PATH%\SDK\LIB\Release\

if exist %PGE_PATH%\debug\PGESystem.dll xcopy /a /d /y %PGE_PATH%\debug\PGESystem.dll %PGE_PATH%\SDK\DLL\Debug\

if exist %PGE_PATH%\release\PGESystem.dll xcopy /a /d /y %PGE_PATH%\release\PGESystem.dll %PGE_PATH%\SDK\DLL\Release\

make dr
make clean